/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/9 9:37
 * @Copyright 博为峰
 */
public class MethodDemo02 {
    public static void main(String[] args) {
        add(1,2);
    }

    public static int add(int a, int b) {
        show("abc");
        return a + b;
    }

    public static int add(int a, int b, int c) {
        return a + b + c;
    }

    //当方法没有返回值时，返回类型用void关键字
    public static void show(String str) {
        System.out.println("str = " + str);
    }
}
